/**
 * @author Kevin
 * @Data 2020/11/26
 */
import java.util.Scanner;
public class JudgePalindrome {
	public static void main(String[] args) {
	//	MethodOne();
		MethodTwo();
	}
	public static void MethodOne() {
		System.out.println("please input a string");
		Scanner sc = new Scanner(System.in);
		String str1 = sc.next();
		StringBuffer sb = new StringBuffer(str1);
		String str2 = (sb.reverse()).toString();
		if (str1.equals(str2)) {
			System.out.println("是回文！");
		} else {
			System.out.println("你输入的不是回文");
		}
	}
	public static void MethodTwo() {
		System.out.println("please input a string");
		Scanner sc = new Scanner(System.in);
		String str = sc.next();
		int len = str.length();
		for (int i = 0; i < len; i++) {
			if (str.charAt(i) == str.charAt(len - 1 - i)) {
				if (i >= len / 2) {
					System.out.println("是回文！");
					break;
				}
			} else {
				System.out.println("不是回文！");
				break;
			}
		}
	}
}



